Fix misc problems with thumbnails on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Sat, 1 Jun 2024 13:43:18 +0000 (16:43 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 1 Jun 2024 13:43:18 +0000 (16:43 +0300)
commitd2dce513445d7235c9f751ea6d9b4847d62882e7
tree7f3aa5fcd3be7ca24f44c96f85ea8c1ab1ad41f4
parent7af5d6fc9a352d4f53f8e48a6bc9ae9a3bf235a3
Fix misc problems with thumbnails on MS-Windows

* lisp/image/image-dired-external.el (image-dired-pngcrush-thumb):
Fix deletion of intermediate file.
(image-dired-cmd-pngcrush-options)
(image-dired-cmd-create-standard-thumbnail-options): Use %u for
file:// URI.
(image-dired--file-URI): New function.
(image-dired-create-thumb-1, image-dired-create-thumb-2)
(image-dired-set-exif-data): Use it to generate correct URI on
MS-Windows.

* src/w32image.c (Fw32image_create_thumbnail): Copy the file names
before mirroring their slashes.
lisp/image/image-dired-external.el
src/w32image.c